import request from "@/utiles/request.js";

/**
 * @description 获取列表数据
 */
export const getListData = (data) => {
  return request({
    url: "/1/createFaultResult",
    data,
    method: "post",
  });
};
/**
 * @description 删除单个结果
 */

export const deleteResult = (data) => {
  return request({
    url: "/1/deleteResult",
    data,
    method: "post",
  });
};

/**
 * @description 确认结果
 */

export const confirmResult = (data) => {
  return request({
    url: "/1/commitResult",
    data,
    method: "post",
  });
};

/**
 * @description 查询所有结果
 */

export const getAllResult = (data) => {
  return request({
    url: "/1/getAllFaultResult",
    data,
    method: "get",
  });
};

/**
 * @description 结果页选择弹窗
 */

export const againResult = (data) => {
  return request({
    url: "/1/addFaultResult",
    data,
    method: "post",
  });
};
